using System.Linq;
using UnityEngine;

[CreateAssetMenu(fileName = "Condition26-敌方士兵的数量有没有小于个数", menuName = "Skill/Condition/Condition26-敌方士兵的数量有没有小于个数", order = 26)]
public class Condition26 : ConditionBase
{
    public int count;
    public override bool Evaluate(Pair pair,GameEvent e)
    {
        return ChessManager.GetInstance().chessList.Count(currentChess => currentChess.GetChessSide() != pair.Chess.GetChessSide() && currentChess.chessDate.chessType == ChessType.Soldier) < count;
    }
}